#include<stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    double fac = 1;
    for(int i = 1; i <= n; i ++)
    {
        fac *= i;
        printf("%-4d%-20.0f\n", i, fac);//注意0.f
    }
    return 0;
}